<template>
	<!-- 一层子目录 存放辅导员名单 -->
	
	<view>
		<!-- <trienter-overview :ft="filter_time"></trienter-overview> -->
		<view class="root-wrapper">
			<mentor-card 
				v-for="(item,index) in mentor_list" 
				:key="index"
				v-bind:info="item">
			</mentor-card>
		</view>
	</view>
</template>

<script>
	// TODO 设置整个页面的布局 设置页面的title
	import mentorCard from '../../components/mentor-card.vue'
	import trienterOverview from '../../components/trienter-overview.vue'
	
	export default {
		components: {
			mentorCard,
			trienterOverview
		},
		
		mounted() {
			console.log('mounted')
		},
		onLoad: function (option) { 
			console.log('onLoad')
			// console.log()
			this.mentor_list = JSON.parse(option.obj)
			
			// option.obj.forEach(ele => {
			// 	console.log(ele)
			// })
			
			uni.setNavigationBarTitle({
			    title: option.name
			})
			
			console.log('sub page中的filter_time', option.filter_time); 
			// this.option = option
			this.filter_time = option.filter_time
			
			
			
			// TODO 根据传入的班级信息去查找辅导员名单
			// this.mentor_list = option.obj
			// [
			// 	{
			// 		name: "王老师",
			// 		id: "201908170113"
			// 	},
			// 	{
			// 		name: "陈老师",
			// 		id: "201908170114"
			// 	},
			// 	{
			// 		name: "刘老师",
			// 		id: "201908170114"
			// 	}
			// ]
			
		},
		data() {
			return {
				option: {},
				filter_time: '',
				// stu_list: [],
				mentor_list:[]
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	

</style>
